package com.wenwu.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wenwu.common.bean.RelicsBasic;
import com.wenwu.common.bean.RelicsMapping;
import com.wenwu.common.bean.RelicsMappingExample;
import com.wenwu.common.page.PaginationVO;

public interface RelicsMappingMapper {
	int countByExample(RelicsMappingExample example);

	int deleteByExample(RelicsMappingExample example);

	int deleteByPrimaryKey(Integer mappingId);

	int insert(RelicsMapping record);

	int insertSelective(RelicsMapping record);

	List<RelicsMapping> selectByExample(RelicsMappingExample example);

	RelicsMapping selectByPrimaryKey(Integer mappingId);

	int updateByExampleSelective(@Param("record") RelicsMapping record,
			@Param("example") RelicsMappingExample example);

	int updateByExample(@Param("record") RelicsMapping record,
			@Param("example") RelicsMappingExample example);

	int updateByPrimaryKeySelective(RelicsMapping record);

	int updateByPrimaryKey(RelicsMapping record);

	RelicsMapping selectObjByKey(@Param("basicId") Integer basicId)
			throws SQLException;

	int selectTotalRecord(@Param("mapping") RelicsMapping mapping)
			throws SQLException;

	List<RelicsBasic> selectList(@Param("mapping") RelicsMapping mapping,
			@Param("pageVo") PaginationVO pageVo) throws SQLException;

	int deleteByKey(List<?> keys) throws SQLException;
}